package com.ojoin.trade.supplyloan_core.web.service;

import java.util.List;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlPlatformUser;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlSupplyloginCheck;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-10-27
 * Time: 下午2:27
 * To change this template use File | Settings | File Templates.
 */
public interface TbSlSupplyloginCheckService extends BaseService<TbSlSupplyloginCheck> {
   
	
	 /**
     * 查询电商平台不可登陆账号
     * @param joinuserNo
     * @throws BusinessException
     */
    public List<TbSlSupplyloginCheck> querySupplyChainPlatformUserCanNotLogin(int joinuserNo,String time) throws BusinessException ;
    
    /**
     * 查询电商平台账号是否全部可登陆
     * @param joinuserNo
     * @throws BusinessException
     */
    public boolean querySupplyChainPlatformUserCanLogin(int joinuserNo,String time) throws BusinessException ;  
    
    
//    /**
//     *新增商户的登陆的日检查信息
//     * @param idOfTbMerchantUser
//     * @param platformName
//     * @param idOfPlatformUser
//     * @param username
//     * @param password
//     * @param checkStatus
//     * @param memo
//     * @throws BusinessException
//     */
//
//    public void addTbSlSupplyloginCheck(int idOfTbMerchantUser,String platformName,int idOfPlatformUser,String username,String password,int checkStatus,String memo)throws BusinessException;

    public void insertTbSlSupplyloginCheck(TbSlSupplyloginCheck checkvo)throws BusinessException;
    /**
     * 根据商户的id查询商户的日登陆信息
     * @param joinid
     * @return
     * @throws BusinessException
     */
    public TbSlSupplyloginCheck queryTbSlSupplyloginCheckByJoinid(int joinid)throws BusinessException;
    
    /**
     * 根据主键id查询商户的日登陆信息
     * @param joinid
     * @return
     * @throws BusinessException
     */
    
    public TbSlSupplyloginCheck queryTbSlSupplyloginCheckById(int id)throws BusinessException;
    
    
    public TbSlSupplyloginCheck getLoginCheckVOByPlatformUser(TbSlPlatformUser platformUser);
 
}
